var api = require('../../utils/api.js');
var app = getApp();
Page({

    /**
     * 页面的初始数据
     */
    data: {
        video:'',
        excel:''
    },

    onLoad(){
        var that=this;
        api.post({
            url: 'index/getvideo',
            data: '',
            success: data => {
                that.setData({
                    video:data.data.video,
                    excel:data.data.excel,
                })
            }
        })
    },

    CopyLink(e) {
        var url=this.data.excel;
        wx.setClipboardData({
          data: url,
          success: res => {
            wx.showToast({
              title: '复制成功',
              duration: 1000,
            })
          }
        })
      }
})